package com.tian.authen.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <pre>
 *     token信息
 * </pre>
 * @author zhump
 */
@Data
@Table("oauth_access_token")
public class OauthAccessToken implements Serializable {

    @ApiModelProperty(value = "MD5加密的access_token的值")
    private String tokenId;

    @ApiModelProperty(value = "OAuth2AccessToken.java对象序列化后的二进制数据")
    private byte[] token;

    @ApiModelProperty(value = "MD5加密过的username,client_id,scope")
    private String authenticationId;

    @ApiModelProperty(value = "登录的用户名")
    private String userName;

    @ApiModelProperty(value = "客户端ID")
    private String clientId;

    @ApiModelProperty(value = "OAuth2Authentication.java对象序列化后的二进制数据")
    private byte[] authentication;

    @ApiModelProperty(value = "MD5加密后的refresh_token的值")
    private String refreshToken;


}
